﻿using DDU.DataModel;
using System;
using System.Data.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace DDU.ViewModel
{
    public class IDataContext:DataContext
    {
        public IDataContext(string fileOrConnection)
            : base(fileOrConnection)
        {
            if (!DatabaseExists())
            {
                CreateDatabase();
            }
        }

        public Table<ScheduleInfo> CollectionOfSchedules;
        public Table<SemesterInfo> CollectionOfSemesters;
        public Table<ExaminationInfo> CollectionOfExaminations;
        public Table<ExaminationCourseInfo> CollectionOfExaminationCourses;
        public Table<VacationInfo> CollectionOfVacations;
        public Table<ActivityInfo> CollectionOfActivities;
        public Table<BookInfo> CollectionOfBooks;
    }
}
